<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1><b><a href="#" style="color: red" >欢迎来到作者展示界面</a></b></h1>

<a href="{% url 'management:author_add' %}"><button>添加</button></a>

<form action="">
<input type="text" name="wd">
<input type="submit" value="查询">
</form>

{% for author in authors %}
    <h3>{{ author.name }}</h3><a href="{% url 'management:author' author.id%}">详情</a>
    <a href="{% url 'management:author_del' author.id%}">删除</a>
    <br>
{% endfor %}
<br>
<a href="{% url 'management:blogs' %}">跳转博客界面</a>
<br>
{% if page > 1%}
    <a href="{% url 'management:authors'%}?page={{ page|add:-1 }}&authors={{ authors }} ">上一页</a>
{% endif %}
<a href="#">当前页:第{{ page }}页</a>
{% if page < maxs %}
    <a href="{% url 'management:authors'%}?page={{ page|add:1 }}&authors={{ authors }} ">下一页</a>
{% endif %}
</body>
</html>